You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > TVec.AutoCorrBiased Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.AutoCorrBiased Method

Biased auto-correlation.

Syntax
C#
Visual Basic
public TVec AutoCorrBiased([In] TVec Vec, int Lags, [In] TVecInt Buffer);

Calculates the biased auto-correlation of the vector Vec. The result of Length = Lags is stored in the calling vector (V). The Lags parameter must be equal or smaller than the calling vector length. The biased auto-correlation is defined by the following equation: 

 

 

The Buffer parameter allows the same work memory to be used between consecutive calls to this and other functions. The Buffer object will not be resized, if sufficient memory is present.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples { void Example() { TVec a,b; MtxVec.CreateIt(out a, aut b); try { a.SetIt(false, new double[] {1,2,3,4}); b.AutoCorrBiased(a,2); } finally { MtxVec.FreeIt(ref a, ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!